package com.taotao.order.webservice;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.order.pojo.Order;
import com.taotao.order.service.OrderService;
@Component
@WebService(serviceName="OrderWebService", endpointInterface="com.taotao.order.webservice.OrderWebService")
public class OrderWebServiceImpl implements OrderWebService {
	@Autowired
	private OrderService orderService;
	@Override
	public String createOrder(Order order) {
		TaotaoResult createOrder = orderService.createOrder(order);
		Object data = createOrder.getData();
		return data.toString();
	}

}
